#!/bin/bash

dirname="basename `pwd`"

book sm
gitbook install
gitbook build
cp favicon.ico _book/gitbook/images/
if [ ! -d _book/logs ];then
    mkdir _book/logs
fi
#if [ ! -d /var/www/$dirname ];then
#    ln -s  `pwd`/_book /var/www/$dirname
#fi
http-server _book & > /dev/null &







